<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
                <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
                <title></title>
                <link rel="stylesheet" href="http://localhost/shopFrame/Application/Admin/View/Public/Css/bootstrap.min.css" />
                <link rel="stylesheet" href="http://localhost/shopFrame/Application/Admin/View/Public/Css/common.css" />
                <script type='text/javascript' src='http://localhost/shopFrame/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

                </style> 
        </head>
        <body>
                <div class="container-fluid">
                        <div class="row-fluid">
                                <div class="span12">
                                        <form action="" method='post' >
                                                <fieldset>
                                                        <legend>添加商品品牌</legend>
                                                        <table class="table table-bordered table-hover">
                                                                <tr class="info">
                                                                        <td>品牌名称</td>
                                                                        <td colspan="2">
                                                                                <input type="text" name='bname'/>
                                                                        </td>
                                                                </tr>
                                                                <tr class="info">
                                                                        <td>品牌所属类型</td>
                                                                        <td colspan="2">
                                                                                <select name='type_tid'>
                                                                                        <option value="0">-----------请选择-----------</option>
                                                                                        <?php if(is_array($data)){?><?php  foreach($data as $key=>$v){ ?>
                                                                                                <option value="<?php echo $v['tid'];?>"><?php echo $v['tname'];?></option>
                                                                                        <?php }}?>
                                                                                        
                                                                                </select>
                                                                        </td>
                                                                </tr>
                                                                <tr class="info">
                                                                        <td>品牌LOGO</td>
                                                                        <td>
                                                                                <link rel="stylesheet" type="text/css" href="http://localhost/shopFrame/hdphp/Extend/Org/Uploadify/uploadify.css" />
            <script type="text/javascript" src="http://localhost/shopFrame/hdphp/Extend/Org/Uploadify/jquery.uploadify.min.js"></script>
            <script type="text/javascript">
            var HDPHP_CONTROL         = "http://localhost/shopFrame/index.php?m=Admin&c=Brand&a=hd_uploadify";
            var UPLOADIFY_URL    = "http://localhost/shopFrame/hdphp/Extend/Org/Uploadify/";
            var HDPHP_UPLOAD_THUMB    ="";
HDPHP_UPLOAD_TOTAL = 0</script>
            <script type="text/javascript" src="http://localhost/shopFrame/hdphp/Extend/Org/Uploadify/hd_uploadify.js"></script>
<script type="text/javascript">
    $(function() {
        hd_uploadify_options.removeTimeout  =0;//提示框消息时间
        hd_uploadify_options.fileSizeLimit  ="1MB";
        hd_uploadify_options.fileTypeExts   ="*.gif;*.jpg;*.png;*.jpeg";
        hd_uploadify_options.showalt        =0;
        hd_uploadify_options.uploadLimit    =10;
        hd_uploadify_options.input_type    ="input";
        hd_uploadify_options.elem_id    ="";
        hd_uploadify_options.success_msg    ="正在上传...";//上传成功提示文字
        hd_uploadify_options.formData ={type:"*.gif;*.jpg;*.png;*.jpeg",water : "1",fileSizeLimit:1048576, someOtherKey:1,PHPSESSID:"bi3h12h1ucbbavfh74r4evjoj4",upload_dir:"upload/logo/",hdphp_upload_thumb:""};
        hd_uploadify_options.thumb_width =98;
        hd_uploadify_options.thumb_height          =35;
        hd_uploadify_options.uploadsSuccessNums = 0;
        $("#hd_uploadify_logo").uploadify(hd_uploadify_options);
        });
</script>
<input type="file" name="up" id="hd_uploadify_logo"/><div class="hd_uploadify_logo_msg num_upload_msg"><span></span>单文件最大<strong>1MB，允许上传类型*.gif;*.jpg;*.png;*.jpeg</strong></div><div id="hd_uploadify_logo_queue"></div>
        <div class="hd_uploadify_logo_files uploadify_upload_files" input_file_id ="hd_uploadify_logo">
            <ul></ul>
            <div style="clear:both;"></div>
        </div>
                                                                                <span style='color:#C81522;font-size:14px;font-family: Verdana,宋体,arial;'>*********logo建议尺寸98*35*********</span>
                                                                        </td>
                                                                </tr>
                                                                <tr class="info">
                                                                        <td>是否热门</td>
                                                                        <td colspan="2">
                                                                                <input type="radio" name='is_hot' value='1' id="hot" checked="checked"/>
                                                                                <label for="hot">是</label>
                                                                                <input type="radio" name='is_hot' value='0' id="nothot"/>
                                                                                <label for="nothot">否</label>
                                                                        </td>
                                                                </tr>
                                                                <tr class="info">
                                                                        <td>排序</td>
                                                                        <td colspan="2">
                                                                                <input type="text" name='sort' value="100"/>
                                                                        </td>
                                                                </tr>
                                                                <tr>
                                                                        <td colspan='3' align='center'>
                                                                                <input type="submit" class="btn btn-primary" value="添加品牌" />
                                                                        </td>
                                                                </tr>
                                                        </table>
                                                </fieldset>
                                        </form>

                                </div>
                        </div>
                </div>
        </body>
</html>